/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-20
 * Time: 19:42
 */
public class MyArrayList_Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.display();
        myArrayList.add(3,55);
//        myArrayList.add(4,99);
        myArrayList.display();
//        boolean have = myArrayList.contains(99);
//        System.out.println(have);
//        int index = myArrayList.indexOf(55);
//        System.out.println(index);
//        int ret = myArrayList.get(2);
//        System.out.println(ret);
        myArrayList.remove(4);
        myArrayList.display();



    }
}
